package org.votes.service.impl;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Transient;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.votes.bean.Details;
import org.votes.dao.DetailsDao;
import org.votes.service.DetailsService;

@Entity
@Service("detailsService")
public class DetailsServiceImpl implements DetailsService {

	@Autowired
	private DetailsDao detailsDao;

	@Override
	public boolean add(Details detail) {
		return detailsDao.add(detail);
	}

	@Override
	public Details update(Details detail) {
		return detailsDao.update(detail);
	}

	@Override
	public boolean delete(Details detail) {
		return detailsDao.delete(detail);
	}

	@Override
	public List<Details> findAll() {
		return detailsDao.findAll();
	}

	@Override
	public Details findById(int id) {
		return detailsDao.findById(id);
	}
	
}
